#include <iostream>
#include <string>
#ifndef BigInt_H
	#define BigInt_H
	class BigInt
	{
		size_t virSize;
		size_t realSize;
		int* digArray;

		BigInt();
		BigInt(BigInt& bigNum);
		~BigInt();
		int& operator [](size_t x);
		BigInt& operator =(BigInt& bigNum);
		void Clear();
		void Push(int num);
		int Pop();
		
	};
	void StrToBigInt(std::string s, BigInt& num);
	std::string BigIntToStr(BigInt& num);
	void Sum(BigInt& bigNumA, BigInt& bigNumB, BigInt& ans);
	void Sub(BigInt& bigNumA, BigInt& bigNumB, BigInt& ans);
#endif